package android.demo.service;

import android.app.Service;
import android.content.Intent;
import android.demo.Constants.Tag;
import android.util.Log;

public abstract class BaseService extends Service {

	protected final String TAG = Tag.SERVICE;
	
	@Override
	public void onCreate() {
		super.onCreate();
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onCreate");
	}
	
	@Override
	public void onRebind(Intent intent) {
		super.onRebind(intent);
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onRebind");
	}
	
	@Override
	public boolean onUnbind(Intent intent) {
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onUnbind");
		return super.onUnbind(intent);
	}
	
	@Override
	public void onStart(Intent intent, int startId) {
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onStart");
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onStartCommand");
		return super.onStartCommand(intent, flags, startId);
	}
	
	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.i(TAG, this + "@" + android.os.Process.myPid() + "@" + android.os.Process.myTid() + "....................onDestroy");
	}
}
